<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>javascript demo</title>
<script type="text/javascript">
function hello(){
	alert("hello");
}</script>
</head>
<body>
<input type="button" value="sayhello" onclick="hello()"/>

</body>
</html>